import request from '@/utils/request'

// 文章列表
export function articles(params) {
  return request({
    url: '/mapi/news/articles',
    method: 'get',
    params
  })
}

// 编辑文章
export function edit_article(params) {
  return request({
    url: '/mapi/news/edit_article',
    method: 'post',
    params
  })
}

// 保存文章
export function save_article(params) {
  return request({
    url: '/mapi/news/save_article',
    method: 'post',
    params
  })
}

// 删除
export function delete_article(params) {
  return request({
    url: '/mapi/news/delete_article',
    method: 'post',
    params
  })
}
